<tagLib name="html" />
<include file="Public:header" />

<div class="container" id="cpcontainer">
    <div class="itemtitle">
        <h3>{$Think.lang.medal.manage_medal}</h3>
        <ul class="tab1">
            <li><a href="__URL__/medalList"><span>{$Think.lang.medal.all_medal}</span></a></li>
            <li class="current"><a href="__URL__/approveMedal"><span>{$Think.lang.medal.approve_medal}</span></a></li>
        </ul>
    </div>
    <form name="cpform" method="post" action="__ACTION__">
    <input type="hidden" name="op" value="save" />
    <table class="tb tb2">
        <tr>
            <th></th>
            <th>{$Think.lang.username}</th>
            <th>{$Think.lang.medal.medal_name}</th>
            <th>{$Think.lang.medal.medal_image}</th>
            <th>{$Think.lang.medal.apply_date}</th>
            <th>{$Think.lang.medal.expire_time}</th>
            <th width="10%">{$Think.lang.mark}</th>
        </tr>
        <volist name="applyList" id="vo">
        <tr>
            <td></td>
            <td>{$vo.username}</td>
            <td>{$vo.name}</td>
            <td><img src="__PUBLIC__/Images/Medals/{$vo.image}" title="{$vo.description}" alt="{$vo.description}" /></td>
            <td>{$vo.create_time|format_date}</td>
            <td><eq name="vo.expiration" value="0"><b>{$Think.lang.medal.never_expire}</b><else/>{$vo.expire_time|format_date}</eq></td>
            <td><input type="checkbox" class="checkbox" name="mods[]" value="{$vo.log_id}" /></td>
        </tr>
        </volist>
        <tr class="nobg">
            <td colspan="6">
                <div class="fixsel right">
                    <input type="submit" class="btn" name="action[approve]" value="{$Think.lang.approve_selected}" /> &nbsp;
                    <input type="submit" class="btn" name="action[disapprove]" value="{$Think.lang.disapprove_selected}" /> 
                </div>
            </td>
            <td><input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll('prefix', this.form, 'mods')" /><label for="chkall">Check All</label></td>
        </tr>
    </table>
    </form>
</div>

<include file="Public:footer" />
